package com.example.obtaingaode.di;

import com.example.obtaingaode.db.DbEntity;
import com.example.obtaingaode.db.LineEntrty;

import dagger.Module;
import dagger.Provides;
import io.objectbox.Box;
import io.objectbox.BoxStore;

/**
 * Created by Ma.Chong on 2017/10/26.
 */
@Module
public class DbModule {
    @Provides
    public Box<DbEntity> provideDbEntrtyBox(BoxStore boxStore){
        return boxStore.boxFor(DbEntity.class);
    }

    @Provides
    public Box<LineEntrty> proviceLineEntrty(BoxStore boxStore){
        return boxStore.boxFor(LineEntrty.class);
    }
}
